import aircv as ac
from common.tools import get_project_path,build_path

class FindImg:
    def img_imread(self,img_path):
        return ac.imread(img_path)
    def get_confidence(self,source_path,search_path):
        img_src=self.img_imread(source_path)
        img_sch=self.img_imread(search_path)
        result=ac.find_template(img_src,img_sch)
        print(result)
        return result["confidence"]


if __name__ == '__main__':
    # load_test_data()
    # print(load_test_data())
    print(get_project_path())
    print(get_project_path() + build_path("common", "tools.py", add_sep_before=True))
